package com.hjm.system.domain.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hjm.common.core.domain.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("tb_exam")
@JsonInclude(JsonInclude.Include.NON_NULL)      // 当参数为空时，自动删除字段
public class Exam extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "EXAM_ID", type = IdType.ASSIGN_ID)
    private Long examId;                                      // 竞赛id

    private String title;                                     // 竞赛标题

    private LocalDateTime startTime;                          // 竞赛开始时间

    private LocalDateTime endTime;                            // 竞赛结束时间

    private Integer status;                                   // 状态 0 未发布  1： 已发布


}
